//
//  YFLoginApi.h
//  SquashSpark
//
//  Created by Coollang on 2017/11/6.
//  Copyright © 2017年 Coollang-YF. All rights reserved.
//

#import "YFBaseRequest.h"


@interface YFLoginApi : YFBaseRequest

// 登录或注册
+ (YFLoginApi *)loginApiType:(RequestApiType)apiType email:(NSString *)email password:(NSString *)password;

// 获取ge人信息
+ (YFLoginApi *)getUserInfo;

// 上传个人信息
+ (YFLoginApi *)uploadUserInfoWithUserInfoItem:(UserInfoItem *)userInfoItem;

// 申请上传头像的评证
+ (YFLoginApi *)applyUploadHeadIconToken;

// 找回密码
+ (YFLoginApi *)forgotpasswordWithEmail:(NSString *)email;

// 用户反馈
+ (YFLoginApi *)userFeedbackWithText:(NSString *)text images:(NSArray *)images emial:(NSString *)email;

/**
 facebook 登录
 */
+ (YFLoginApi *)facebookLoginWithOpenID:(NSString *)openID
                            accessToken:(NSString *)accessToken
                                 gender:(Gender)gender
                              firstName:(NSString *)firstName
                               lastName:(NSString *)lastName
                                    age:(NSString *)age
                                   icon:(NSString *)icon
                               complete:(void(^)(NSError *error, NSString *userID, BOOL isFirstLogin, NSString *token)) complete;

@end
